package com.base.service.impl;

import com.base.mapper.voipmapper.TourGoodsMapper;
import com.base.po.voip.TourGoods;
import com.base.po.voip.TourGoodsExample;
import com.base.service.TourGoodsService;
import com.base.utils.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("tourGoodsService")
public class TourGoodsServiceImpl implements TourGoodsService {
	
	@Autowired
	private TourGoodsMapper tourGoodsMapper;


	@Override
	public int countByExample(TourGoodsExample example) {
		return tourGoodsMapper.countByExample(example);
	}

	@Override
	public int deleteByExample(TourGoodsExample example) {
		return tourGoodsMapper.deleteByExample(example);
	}

	@Override
	public int deleteByPrimaryKey(String id) {
		return tourGoodsMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(TourGoods record) {
		return tourGoodsMapper.insert(record);
	}

	@Override
	public int insertSelective(TourGoods record) {
		return tourGoodsMapper.insertSelective(record);
	}

	@Override
	public List<TourGoods> selectByExample(TourGoodsExample example) {
		return tourGoodsMapper.selectByExample(example);
	}

	@Override
	public List<TourGoods> selectByAll(Page page, String parentid, String shopid, String goodstext, String firstclassify, String secondclassify, Byte status) {
		return tourGoodsMapper.selectByAll(page, parentid, shopid, goodstext, firstclassify, secondclassify, status);
	}

	@Override
	public List<TourGoods> selectSeach(Page page, String parentid, String shopid, String firstclassify, Byte isgoods) {
		return tourGoodsMapper.selectSeach(page, parentid, shopid, firstclassify, isgoods);
	}


	@Override
	public TourGoods selectByPrimaryKey(String id) {
		return tourGoodsMapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByExampleSelective(TourGoods record, TourGoodsExample example) {
		return tourGoodsMapper.updateByExampleSelective(record, example);
	}

	@Override
	public int updateByExample(TourGoods record, TourGoodsExample example) {
		return tourGoodsMapper.updateByExample(record, example);
	}

	@Override
	public int updateByPrimaryKeySelective(TourGoods record) {
		return tourGoodsMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(TourGoods record) {
		return tourGoodsMapper.updateByPrimaryKey(record);
	}

	@Override
	public int countByAll(String parentid, String shopid, String goodstext, String firstclassify, String secondclassify, Byte status) {
		return tourGoodsMapper.countByAll(parentid, shopid, goodstext, firstclassify, secondclassify, status);
	}

	@Override
	public int countSeach(String parentid, String shopid, String firstclassify, Byte isgoods) {
		return tourGoodsMapper.countSeach(parentid, shopid, firstclassify, isgoods);
	}
}
